package com.jn.jackson.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

public class People {
    private String sex;

    private String name;

    // @JsonProperty：指定 JSON 字段名（与 Java 字段名不一致时使用）
    @JsonProperty("age")
    private String p_age;

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return p_age;
    }

    public void setAge(String p_age) {
        this.p_age = p_age;
    }

    @Override
    public String toString() {
        return "People{" +
                "p_sex='" + sex + '\'' +
                ", p_name='" + name + '\'' +
                ", p_age='" + p_age + '\'' +
                '}';
    }
}
